home *** CD-ROM | disk | FTP | other *** search
/ Chip 2007 January, February, March & April / Chip-Cover-CD-2007-02.iso / Pakiet bezpieczenstwa / mini Pentoo LiveCD 2006.1 / mpentoo-2006.1.iso / livecd.squashfs / usr / lib / mozilla-firefox / include / websrvcs / nsISOAPAttachments.h < prev    next >
C/C++ Source or Header  |  2006-05-08  |  3KB  |  119 lines

  1. /*
  2.  * DO NOT EDIT.  THIS FILE IS GENERATED FROM nsISOAPAttachments.idl
  3.  */
  4.  
  5. #ifndef __gen_nsISOAPAttachments_h__
  6. #define __gen_nsISOAPAttachments_h__
  7.  
  8.  
  9. #ifndef __gen_nsISupports_h__
  10. #include "nsISupports.h"
  11. #endif
  12.  
  13. /* For IDL files that don't want to include root IDL files. */
  14. #ifndef NS_NO_VTABLE
  15. #define NS_NO_VTABLE
  16. #endif
  17.  
  18. /* starting interface:    nsISOAPAttachments */
  19. #define NS_ISOAPATTACHMENTS_IID_STR "6192dcbe-1dd2-11b2-81ad-a4597614c4ae"
  20.  
  21. #define NS_ISOAPATTACHMENTS_IID \
  22.   {0x6192dcbe, 0x1dd2, 0x11b2, \
  23.     { 0x81, 0xad, 0xa4, 0x59, 0x76, 0x14, 0xc4, 0xae }}
  24.  
  25. /**
  26.  * This interface permits attachment of SOAP attachments.
  27.  */
  28. class NS_NO_VTABLE nsISOAPAttachments : public nsISupports {
  29.  public: 
  30.  
  31.   NS_DEFINE_STATIC_IID_ACCESSOR(NS_ISOAPATTACHMENTS_IID)
  32.  
  33.   /**
  34.    * Get the attachment associated with a particular identifier.
  35.    *
  36.    * @param aIdentifier The identifier of the attachment to be accessed.
  37.    *
  38.    * Appropriate return(s) must be identified.
  39.    */
  40.   /* void getAttachment (in AString aIdentifier); */
  41.   NS_IMETHOD GetAttachment(const nsAString & aIdentifier) = 0;
  42.  
  43.   /**
  44.    * Attach an attachment to the message.
  45.    *
  46.    * Appropriate argument(s) must be identified.
  47.    *
  48.    * @return The identifier of the attachment, to be referenced in SOAP encoding
  49.    */
  50.   /* AString attach (); */
  51.   NS_IMETHOD Attach(nsAString & _retval) = 0;
  52.  
  53. };
  54.  
  55. /* Use this macro when declaring classes that implement this interface. */
  56. #define NS_DECL_NSISOAPATTACHMENTS \
  57.   NS_IMETHOD GetAttachment(const nsAString & aIdentifier); \
  58.   NS_IMETHOD Attach(nsAString & _retval); 
  59.  
  60. /* Use this macro to declare functions that forward the behavior of this interface to another object. */
  61. #define NS_FORWARD_NSISOAPATTACHMENTS(_to) \
  62.   NS_IMETHOD GetAttachment(const nsAString & aIdentifier) { return _to GetAttachment(aIdentifier); } \
  63.   NS_IMETHOD Attach(nsAString & _retval) { return _to Attach(_retval); } 
  64.  
  65. /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
  66. #define NS_FORWARD_SAFE_NSISOAPATTACHMENTS(_to) \
  67.   NS_IMETHOD GetAttachment(const nsAString & aIdentifier) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetAttachment(aIdentifier); } \
  68.   NS_IMETHOD Attach(nsAString & _retval) { return !_to ? NS_ERROR_NULL_POINTER : _to->Attach(_retval); } 
  69.  
  70. #if 0
  71. /* Use the code below as a template for the implementation class for this interface. */
  72.  
  73. /* Header file */
  74. class nsSOAPAttachments : public nsISOAPAttachments
  75. {
  76. public:
  77.   NS_DECL_ISUPPORTS
  78.   NS_DECL_NSISOAPATTACHMENTS
  79.  
  80.   nsSOAPAttachments();
  81.  
  82. private:
  83.   ~nsSOAPAttachments();
  84.  
  85. protected:
  86.   /* additional members */
  87. };
  88.  
  89. /* Implementation file */
  90. NS_IMPL_ISUPPORTS1(nsSOAPAttachments, nsISOAPAttachments)
  91.  
  92. nsSOAPAttachments::nsSOAPAttachments()
  93. {
  94.   /* member initializers and constructor code */
  95. }
  96.  
  97. nsSOAPAttachments::~nsSOAPAttachments()
  98. {
  99.   /* destructor code */
  100. }
  101.  
  102. /* void getAttachment (in AString aIdentifier); */
  103. NS_IMETHODIMP nsSOAPAttachments::GetAttachment(const nsAString & aIdentifier)
  104. {
  105.     return NS_ERROR_NOT_IMPLEMENTED;
  106. }
  107.  
  108. /* AString attach (); */
  109. NS_IMETHODIMP nsSOAPAttachments::Attach(nsAString & _retval)
  110. {
  111.     return NS_ERROR_NOT_IMPLEMENTED;
  112. }
  113.  
  114. /* End of implementation class template. */
  115. #endif
  116.  
  117.  
  118. #endif /* __gen_nsISOAPAttachments_h__ */
  119.